package com.school.fuyuan.common.exception;

import lombok.*;
import org.springframework.util.StringUtils;

import java.text.MessageFormat;

/**
 * @author zrhong
 * @version 1.0
 * @date 2019/3/3 20:40
 * @description
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class CommonRuntimeException extends RuntimeException {

    private String code;

    private String msg;

    public CommonRuntimeException(String code, Throwable e,String msg) {
        super(e);
        this.code = code;
    }

}
